<template>
  <div>
    <div>{{txt}}</div>
    <div>参数:{{params}}</div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      txt: "",
      params: ""
    };
  },
  methods: {
    init() {
      //获取父级传过来的参数
      this.params = this.$common.getTabParams();
      this.txt = this.$common.getTab().label;
    }
  },
  created() {
    this.init();
  }
};
</script>

<style>
</style>